from manim import *


class app(Scene):
    def construct(self):
        circle = Circle()  # 1.创建圆形
        circle.set_fill(PINK, opacity=0.5)  # set the color and transparency

        square = Square()  # 2.创建方形
        square.set_fill(BLUE, opacity=0.5)  # set the color and transparency

        square.next_to(circle, RIGHT, buff=0.5)  # 3.设置位置
        self.play(Create(circle), Create(square))  # 4.显示
